#pragma once
#ifndef ENTITYENEMY
#define ENTITYENEMY

#include "WorldEntity.h"

class CEntityEnemy:public CWorldEntity
{
private:
	//variables for chasing the player
	float m_previousLengthBetweenLookVectors;
	bool m_positiveWayOfTurning;

	//offset variable
	float m_offsetY;
	float m_offsetYaw;

	//interpolation variables
	DWORD m_startTimeInterpolation;
	float m_durationInterpolation;
	D3DXVECTOR3 m_startPositionInterpolation;
	D3DXVECTOR3 m_endPositionInterpolation;

	
public:
	CEntityEnemy(D3DXVECTOR3 initialPosition, float initialPitch, float initialYaw, float initialRoll, int graphicIndex, float speed, 
		bool collision, int indexSound, int durationSound, float damage, float offsetY);
	~CEntityEnemy(void);

	bool isArrived();
	void doInterpolation(void);
	void doUpdate(void);
	void doRender(void);
};

#endif
